//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Spreadsheet
{
    class ExternalSheetName: IOfficeXmlSerializable
    {
        #region IOfficeXmlSerializable Members

        public void ReadXml(ReadContext context)
        {
            using (ReadContext c = context.Read("sheetName"))
            {
                Value = c.GetString("val");
            }
        }

        public void WriteXml(WriteContext context)
        {
            using (WriteContext c = context.Write("sheetName"))
            {
                c.SetString("val", Value);
            }
        }

        #endregion

        private string _val;

        public string Value
        {
            get { return _val; }
            set { _val = value; }
        }
	
    }
}
